<?php
	if (!isset($_SESSION)) { session_start(); }
	$cod_pais = $_SESSION['PAIS'];
	include_once('../../includes/fk_php/Connections/connection.php');
	
	$para = $_REQUEST['para'];
	$con = "CALL SP_PARAMETROS('$para')";
	$Resul	= $connection->query($con);
	$total = $Resul->field_count;
	$i=0;
	$response ='';
	while($Info	= $Resul->fetch_row()){
		$iden	=	$Info[0];
	}
	$tipos = explode(",",$iden);
	$i=0;
	foreach($tipos as $valor){
		$response->data[$i]=array('idtipo'=>$valor,'nombretipo'=>$valor);
		$i++;
	}
	//print_r($tipos);
	echo json_encode($response);
?>

